import 'package:flutter_bugly/flutter_bugly.dart';
import '/constant/keys.dart';
import '/util/logger_util.dart';

/// <summary>
/// author：wb
/// dateTime： 2022/2/15 9:16 上午
/// filePath： /lib/util/bugly_util.dart
/// desc: 腾讯Bugly
/// <summary>
///
class Bugly {
  Bugly._internal();

  ///初始化Bugly
  static void init() {
    FlutterBugly.init(
      androidAppId: Keys.bugly_Android,
      iOSAppId: Keys.bugly_Ios,
    ).then((_result) => logger("Bugly初始化结果: $_result",tag: ''));
  }

  ///检查更新
  static checkUpgrade() => FlutterBugly.checkUpgrade();

}